TryGetValue Method

Summary
Gets the value associated with the specified key.
Syntax
C#
VB
C++
public bool TryGetValue( 
   TKey key, 
   out TValue value 
) 
public: 
bool TryGetValue(  
   TKey^ key, 
   [Out] TValue^ value 
)  
Public Function TryGetValue( 
   ByVal key As TKey, 
   ByRef value As TValue 
) As Boolean 

Parameters

key
The key of the value to get.

value
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

true if the DictionaryWithEvents<TKey,TValue> contains an element with the specified key; otherwise, false.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Workstation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.